home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000217-20000824
/
000318_news@columbia.edu _Tue May 23 10:38:12 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA15586
for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 23 May 2000 10:38:11 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA09935
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 23 May 2000 10:38:11 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA05772
for kermit.misc@watsun.cc.columbia.edu; Tue, 23 May 2000 10:26:15 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: FTP'ing to a VMS box
Date: 23 May 2000 14:26:14 GMT
Organization: Columbia University
Message-ID: <8ge4e6$5k9$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <8gdtge$q3u$1@murrow.sp.trw.com>,
Dean Richard Benson <dean.benson@remove_metrw.com> wrote:
: I am coding a VB application which takes a file from a VMS
: system (via FTP), and allows the user to edit the file on the PC.
:
: Once the user is happy with the new file, the application then
: FTP's it back onto the VMS system ready for use.
:
: The problem that I am having is that when I issue a DIR command
: from FTP and try to parse the results, CR's appear when there is
: a long file name. Normally I would expect only a list of files, but
: I actaully get a list of files, file information, ownerships etc.
:
: Is there a way that anyone knows of controlling the returns from
: FTP commands. Documents that I have read on FTP state that the
: host controls the format, but I havent a clue how!
:
You could use Kermit rather than FTP. In fact, Kermit 95 already comes
with a "netedit" feature that does exactly what you're working on:
http://www.columbia.edu/kermit/
You can see the netedit procedure here:
http://www.columbia.edu/kermit/ckscripts/
This procedure assumes the user already has a connection to the remote
computer and is logged in to it, but it's easy to add the pieces to
accomplish the connection too if required; they are available in other
scripts in the same library.
As for parsing directory listings... The Kermit netedit procedure
assumes you know the name of the file you want to edit. But if you
want to allow the user to browse through directories, this can be done
in a much more straightforward way than with FTP, since you don't have
to parse bizarre platform- and environment-dependent directory
listings. The client can tell the server "make a list of all the files
that match *.txt" (or whatever); "now send me the name of the first
file", "now send me the name of the next file", and so on.
- Frank